<div id="AddContactDlg"  style="display: none;" title="Add Contact">
	<?php
	$form = $this->beginWidget('PsActiveForm', array(
		'id' => 'add-contact-form',
		'action' => array('/contact/default/ajaxAddContact'),
		'enableAjaxValidation' => false,
		'enableClientValidation' => true,
		'clientOptions' => array(
			'inputContainer' => 'tr',
			'validationDelay' => 0,
			'validateOnSubmit' => true,
			)));
	?>
	<table class="form-table">
		<tr>
			<th scope="row" width="120">
				<?php echo $form->labelEx($contact, 'name'); ?>
			</th>
			<td>
				<div>
					<?php echo $form->textField($contact, 'name', array('size' => 45)); ?>
					<?php echo $form->error($contact, 'name'); ?>
				</div>
			</td>
		</tr>
		<tr>
			<th scope="row" width="120">
				<?php echo $form->labelEx($contact, 'company'); ?>
			</th>
			<td>
				<div>
					<?php echo $form->textField($contact, 'company', array('size' => 45)); ?>
					<?php echo $form->error($contact, 'company'); ?>
				</div>
			</td>
		</tr>
		<tr>
			<th scope="row" width="120">
				<?php echo $form->labelEx($contact, 'job_title'); ?>
			</th>
			<td>
				<div>
					<?php echo $form->textField($contact, 'job_title', array('size' => 45)); ?>
					<?php echo $form->error($contact, 'job_title'); ?>
				</div>
			</td>
		</tr>
		<tr>
			<th scope="row" width="90">
				<?php echo $form->labelEx($contact, 'nric'); ?>
			</th>
			<td>
				<div class="form-table-block">
					<?php echo $form->textField($contact, 'nric', array('size' => 24)); ?>
					<?php echo $form->error($contact, 'nric'); ?>
				</div>
				<div class="form-table-block">
					<?php echo $form->dropDownList($contact, 'nric_type', array('nric' => 'NRIC', 'fin' => 'FIN', 'passport' => 'Passport'), array('prompt' => '')); ?>
					<?php echo $form->error($contact, 'nric_type'); ?>
				</div>
			</td>
		</tr>
		<tr>
			<th scope="row" width="90">
				<?php echo $form->labelEx($contact, 'birthday'); ?>
			</th>
			<td>
				<div class="form-table-block">
					<?php
					$form->widget('PsJuiDatePicker', array(
						'model' => $contact,
						'attribute' => 'birthday',
						'options' => array(
							'showButtonPanel' => false,
							'changeYear' => true,
							'yearRange' => 'c-100:c+0',
							'dateFormat' => 'dd-mm-yy'
						),
					));
					?>
					<?php echo $form->error($contact, 'birthday'); ?>
				</div>
			</td>
		</tr>
	</table>
	<?php $this->endWidget(); ?>
</div>